FUNCTION

is_rule_violated

function is_rule_violated(rule: rule_expression, variables: map<text, gtv>): boolean

Detects whether a rule expression is violated.

Parameters

  • rule — the rule to check.
  • variables — the state to check the rules against.

Returns

true if the rule is violated, false otherwise.

See Also

© 2024 Chromia